package com.ktwlsoft.archivemanage.payload.study.studyClass;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * @author JokerMo
 * @version 1.0
 * @date 2019/12/27 14:44
 */
@Getter
@Setter
public class AddCommentRequest {
    @ApiModelProperty("课程id")
    @NotNull(message = "课程id不能为空")
    private Long classId;

    @ApiModelProperty("用户id")
    @NotNull(message = "用户id不能为空")
    private Long userId;

    @ApiModelProperty("评论内容")
    @Size(max = 60, message = "评论内容不得超过60字")
    private String content;
}
